<template>
  <div>
    <div class="w-[520px] p-4 flex flex-wrap">
      <BaseTitle title="医保费用结算明细" class="!w-full" />
      <a-divider class="!m-1" />
      <LabelValue label="医疗总费用" class="!w-3/5" :value="'￥' + formatAmount(data.medfee_sumamt)" />
      <LabelValue label="全自费金额" class="!w-2/5" :value="'￥' + formatAmount(data.fulamt_ownpay_amt)" />
      <LabelValue label="实际支付起付线" class="!w-3/5" :value="'￥' + formatAmount(data.act_pay_dedc)" />
      <LabelValue label="统筹基金支出" class="!w-2/5" :value="'￥' + formatAmount(data.hifp_pay)" />
      <LabelValue label="居民大病保险资金支出" class="!w-3/5" :value="'￥' + formatAmount(data.hifmi_pay)" />
      <LabelValue label="医院负担金额" class="!w-2/5" :value="'￥' + formatAmount(data.hosp_part_amt)" />
      <LabelValue label="符合政策范围金额" class="!w-3/5" :value="'￥' + formatAmount(data.inscp_scp_amt)" />
      <LabelValue label="医疗救助基金支出" class="!w-2/5" :value="'￥' + formatAmount(data.maf_pay)" />
      <LabelValue label="个人负担总金额" class="!w-3/5" :value="'￥' + formatAmount(data.psn_part_amt)" />
      <LabelValue label="个人账户支出" class="!w-2/5" :value="'￥' + formatAmount(data.acct_pay)" />
      <LabelValue label="个人现金支出" class="!w-3/5" :value="'￥' + formatAmount(data.psn_cash_pay)" />
      <LabelValue label="超限价自费费用" class="!w-2/5" :value="'￥' + formatAmount(data.overlmt_selfpay)" />
      <LabelValue label="公务员医疗补助资金支出" class="!w-3/5" :value="'￥' + formatAmount(data.cvlserv_pay)" />
      <LabelValue label="统筹基金支付比例" class="!w-2/5" :value="'￥' + formatAmount(data.pool_prop_selfpay)" />
      <LabelValue label="企业补充医疗保险基金支出" class="!w-3/5" :value="'￥' + formatAmount(data.hifes_pay)" />
      <LabelValue label="基金支付总额" class="!w-2/5" :value="'￥' + formatAmount(data.fund_pay_sumamt)" />
      <LabelValue label="职工大额医疗费用补助基金支出" class="!w-3/5" :value="'￥' + formatAmount(data.hifob_pay)" />
      <LabelValue label="先行自付金额" class="!w-2/5" :value="'￥' + formatAmount(data.preselfpay_amt)" />
      <LabelValue label="个人账户共济支付金额" class="!w-3/5" :value="'￥' + formatAmount(data.acct_mulaid_pay)" />
      <LabelValue label="其他支出" class="!w-2/5" :value="'￥' + formatAmount(data.oth_pay)" />
    </div>
  </div>
</template>
<script setup>
import { formatAmount } from '@/utils/format.js'

defineProps({
  data: {
    type: Object,
    default: () => ({})
  }
})
</script>
